<?php
/**************************************************
* PluginLotto.com                                 *
* Copyrights (c) 2005-2010. iZAP                  *
* All rights reserved                             *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version {version} $Revision: {revision}
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */


global $CONFIG;

return array(

        'path' => array(
                'www' => array(
                        'page'=>$CONFIG->wwwroot.'pg/'.GLOBAL_IZAP_POLL_PAGEHANDLER.'/',
                        'action'=>$CONFIG->wwwroot.'action/'.GLOBAL_IZAP_POLL_ACTION.'/',
                        'images' => $CONFIG->wwwroot . 'mod/'.GLOBAL_IZAP_POLL_PLUGIN.'/_graphics/',
                ),
                'dir'=>array(
                        'plugin'=>dirname(dirname(__FILE__)).'/',
                        'class' =>  dirname(__FILE__).'/classes/',
                        'images' => dirname(dirname(__FILE__)) . '/_graphics/',
                        'actions' => $CONFIG->pluginspath. GLOBAL_IZAP_POLL_PLUGIN . '/actions/',
                        'views'=>array(
                                'home' => GLOBAL_IZAP_POLL_PLUGIN . '/',
                                'forms'=> GLOBAL_IZAP_POLL_PLUGIN.'/forms/',
                                'view'=> GLOBAL_IZAP_POLL_PLUGIN.'/views/',
                                'river'=>"river/".GLOBAL_IZAP_POLL_PLUGIN."/",

                        ),
                        'pages'=>dirname(dirname(__FILE__)).'/pages/',
                ),
        ),
        'plugin'=>array(

                'name'=>GLOBAL_IZAP_POLL_PLUGIN,

                'title'=>'Poll',

                'url_title'=> GLOBAL_IZAP_POLL_PAGEHANDLER,

                'objects'=>array(
                        GLOBAL_IZAP_POLL_SUBTYPE => array(
                                'class'=> 'izapPoll',
                                'type'=>'object',
                        ),
                ),
                'actions' => array(

                        GLOBAL_IZAP_POLL_ACTION.'/add'=>array('file' => "add.php",'admin_only' => !(canUserPostPoll())),

                ),

                'action_to_plugin_name' => array(
                        GLOBAL_IZAP_POLL_ACTION => GLOBAL_IZAP_POLL_PLUGIN,
                ),

                'menu' => array(
                        'pg/'.GLOBAL_IZAP_POLL_PAGEHANDLER.'/' => array( 'title' => elgg_echo('izap_poll:poll'), 'public' => true ),
                ),

                'submenu'=>array(
                        GLOBAL_IZAP_POLL_PAGEHANDLER => array(
                                'pg/'.GLOBAL_IZAP_POLL_PAGEHANDLER.'/' => array( 'title' => elgg_echo('izap_poll:all_polls'), 'public' => true),
                                'pg/'.GLOBAL_IZAP_POLL_PAGEHANDLER.'/add/' => array('title' => elgg_echo('izap_poll:add'), 'admin_only' => !(canUserPostPoll())),
                        ),
                ),
        ),
        'includes' => array(
                dirname(__FILE__).'/classes' => array('izapPoll.php'),
        ),
);